from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
from postion import options
from postion import service

driver = webdriver.Chrome(options=options,service=service)
driver.get(r'https://www.baidu.com/')
sleep(1)

driver.find_element(By.ID,'kw').send_keys('a66')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.BACK_SPACE)
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.SPACE)
sleep(1)
driver.find_element(By.ID,'kw').send_keys('奥迪')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'a')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'c')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'v')
sleep(1)
driver.quit()